package com.wn.contrller;

import com.wn.feign.ConsumerFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Docter
 * @date 2022 -10-31
 * @desc
 */
@RestController
@Slf4j
@RequestMapping("feign")
public class ConsumerController {

    @Autowired
    private ConsumerFeign consumerFeign;

    @RequestMapping("get")
    public String get(){
        return consumerFeign.remoteFindNacos();
    }
}
